package cn.easyutil.util.javaUtil.bean;

import java.io.Serializable;

import cn.easyutil.util.javaUtil.StringUtil;

public class IpAddressBean implements Serializable{
	private static final long serialVersionUID = 1L;
	/** 公网ip*/
	private String ip;
	/** ip所在省份*/
	private String province;
	/** ip所在城市*/
	private String city;
	/** 网络运营商*/
	private String isp;
	private String provincePinYin;
	private String cityPinYin;
	private String ispPinYin;
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	public String getProvince() {
		return province;
	}
	public void setRegion(String province) {
		this.province = province;
	}
	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public String getIsp() {
		return isp;
	}
	public void setIsp(String isp) {
		this.isp = isp;
	}
	public String getProvincePinYin() {
		if(!StringUtil.isEmpty(this.getProvince())){
			provincePinYin = StringUtil.toPinYin(this.getProvince());
		}
		return provincePinYin;
	}
	public String getCityPinYin() {
		if(!StringUtil.isEmpty(this.getCity())){
			cityPinYin = StringUtil.toPinYin(this.getCity());
		}
		return cityPinYin;
	}
	public String getIspPinYin() {
		if(!StringUtil.isEmpty(this.getIsp())){
			ispPinYin = StringUtil.toPinYin(this.getIsp());
		}
		return ispPinYin;
	}
	public void setIspPinYin(String ispPinYin) {
		this.ispPinYin = ispPinYin;
	}
}
